import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 服务顾问 - 下拉框
export const getUserListSelect = params => axios.get(`/api/sysManage/basedata/users/getUserListByRole?role=10071011`, { params });

// 维修业务报表
export const queryRepair = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryRepair`, { params });

// 维修项目统计
export const queryrepairlabour = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryRepairLabour`, { params });

// 技师维修台次统计
export const queryRepairTimesByTechnicianReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryRepairTimesByTechnicianReport`, { params });

// 技师维修台次统计 明细
export const queryRepairTimesByTechnicianDetailReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryRepairTimesByTechnicianDetailReport`, { params });

// 维修业务成本查询
export const queryRepairCostReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryRepairCostReport`, { params });

// 查询全部车系
export const getVehicleSeries = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/baseData/basicData/series`, { params });
// 获取车型
export const getselectModelList = params => axios.get(`${SERVER.DMS_WEB}/manage/rest/basedata/selectModel`, { params });

// 查询所有员工
export const getAllUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);

// 获取优惠模式
export const getqueryDiscountModeList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/discountmodes/queryDiscountMode`, { params });

// 指定技师
export const getChiefTechnician = params => axios.get(`/api/sysManage/basedata/users/getUserListByRole?role=10061012`);

// 结算单明细查询
export const queryBalanceAccountsDetailReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryBalanceAccountsDetailReport`, { params });

// 欠款车主 不合并车主
export const queryNotReceivedOwnerNoGroupReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryNotReceivedOwnerNoGroupReport`, { params });

// 欠款车主 合并车主
export const queryNotReceivedOwnerGroupReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryNotReceivedOwnerGroupReport`, { params });

// (欠款车主 , 欠款车辆 , 欠款收费对象)明细界面
export const queryNotReceivedDetailReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryNotReceivedDetailReport`, { params });

// 欠款车辆 不合并服务顾问
export const queryNotReceivedVehicleNoGroupReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryNotReceivedVehicleNoGroupReport`, { params });

// 欠款车辆 合并服务顾问
export const queryNotReceivedVehicleGroupReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryNotReceivedVehicleGroupReport`, { params });


// 欠款收费对象
export const queryNotReceivedPayObjReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryNotReceivedPayObjReport`, { params });

// 欠款工单 不合工单号
export const queryNotReceivedRepairOrderNoGroupReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryNotReceivedRepairOrderNoGroupReport`, { params });

// 欠款工单 合并工单号
export const queryNotReceivedRepairOrderGroupReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryNotReceivedRepairOrderGroupReport`, { params });

// 技师工时统计表 汇总
export const queryTechnicianLabourHourReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/workshopReport/queryTechnicianLabourHourReport`, { params });

// 技师工时统计表 明细
export const queryTechnicianLabourHourDetailReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/workshopReport/queryTechnicianLabourHourDetailReport`, { params });

// 技师工时统计表 明细
export const queryServiceAdvisorPerformanceReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/workshopReport/queryServiceAdvisorPerformanceReport`, { params });

// 车辆维修历史
export const queryVehicleRepairHistoryReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryVehicleRepairHistoryReport`, { params });

// 在厂车辆查询统计
export const queryRepairingVehicleReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryRepairingVehicleReport`, { params });

// 保险公司送修情况
export const queryInsuranceCompanyToRepairReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/financialReport/queryInsuranceCompanyToRepairReport`, { params });